1import os
 2
 3max_x = 5
 4max_y = 5
 5
 6for x in range(max_x):
 7    for y in range(max_y):
 8        if x >= y:
 9            # command = "flatpak run org.openscad.OpenSCAD -o ./out/"+character+".stl -D \"stamp(\\\"\\\\U"+format(ord(character), '06x')+"\\\");\" ./v1.scad&"
10            # command = "flatpak run org.openscad.OpenSCAD -o ./out/"+character+".stl -D \"stamp(\\\""+character+"\\\");\" ./v1.scad&"
11            command_bottom = (
12                "openscad -o ./out/"
13                + str(x + 1)
14                + "x"
15                + str(y + 1)
16                + "-bottom.stl -D gridx='"
17                + str(x + 1)
18                + "' -D gridy='"
19                + str(y + 1)
20                + "' -D shitfinity_top='false' ./v1.scad &"
21            )
22            print(command_bottom)
23            os.system(command_bottom)
24            command_top = (
25                "openscad -o ./out/"
26                + str(x + 1)
27                + "x"
28                + str(y + 1)
29                + "-top.stl -D gridx='"
30                + str(x + 1)
31                + "' -D gridy='"
32                + str(y + 1)
33                + "' -D shitfinity_top='true' ./v1.scad &"
34            )
35            print(command_top)
36            os.system(command_top)